.class public Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
.super Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;
.source "CommunityAppRankingFragment.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;
    }
.end annotation


# instance fields
.field private mAdapter:Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

.field private mDataCallback:Lretrofit/Callback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lretrofit/Callback",
            "<",
            "Lorg/json/JSONObject;",
            ">;"
        }
    .end annotation
.end field

.field private mHasNext:Z

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mIsRequesting:Z

.field private mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mListView:Landroid/widget/ListView;

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mPage:I

.field private mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

.field private mRankingAppModels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/community/model/RankingAppModel;",
            ">;"
        }
    .end annotation
.end field

.field private mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

.field private mShadowHeaderView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;-><init>()V

    .line 49
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;

    .line 52
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z

    .line 54
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mHasNext:Z

    .line 59
    new-instance v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$1;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 84
    new-instance v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mDataCallback:Lretrofit/Callback;

    .line 242
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mShadowHeaderView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$102(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
    .param p1, "x1"    # Z

    .prologue
    .line 42
    iput-boolean p1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z

    return p1
.end method

.method static synthetic access$202(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
    .param p1, "x1"    # Z

    .prologue
    .line 42
    iput-boolean p1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mHasNext:Z

    return p1
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    return v0
.end method

.method static synthetic access$310(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)I
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    return v0
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$402(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Ljava/util/List;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
    .param p1, "x1"    # Ljava/util/List;

    .prologue
    .line 42
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;

    return-object p1
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mAdapter:Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

    return-object v0
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->fetchMore()V

    return-void
.end method

.method static synthetic access$800(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    return-object v0
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/nostra13/universalimageloader/core/ImageLoader;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    return-object v0
.end method

.method private fetchData()V
    .registers 5

    .prologue
    .line 232
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z

    if-eqz v0, :cond_5

    .line 240
    :goto_4
    return-void

    .line 235
    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z

    .line 237
    iget v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    .line 238
    const-string v0, "tag"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "page "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 239
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iget v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    const/16 v2, 0x32

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mDataCallback:Lretrofit/Callback;

    invoke-interface {v0, v1, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listRankingApps(IILretrofit/Callback;)V

    goto :goto_4
.end method

.method private fetchMore()V
    .registers 5

    .prologue
    .line 217
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mHasNext:Z

    if-nez v0, :cond_11

    .line 218
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$4;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 229
    :goto_10
    return-void

    .line 228
    :cond_11
    invoke-direct {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->fetchData()V

    goto :goto_10
.end method

.method public static getInstance()Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
    .registers 2

    .prologue
    .line 118
    new-instance v1, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    invoke-direct {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;-><init>()V

    .line 119
    .local v1, "fragment":Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 120
    .local v0, "extra":Landroid/os/Bundle;
    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->setArguments(Landroid/os/Bundle;)V

    .line 121
    return-object v1
.end method


# virtual methods
.method public getFragmentTitle()Ljava/lang/String;
    .registers 3

    .prologue
    .line 195
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v0

    const v1, 0x7f0c004b

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/application/NiceAppApplication;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected initActions(Landroid/view/View;)V
    .registers 4
    .param p1, "fragmentView"    # Landroid/view/View;

    .prologue
    .line 173
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    new-instance v1, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$3;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnRefreshListener(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2;)V

    .line 184
    return-void
.end method

.method protected initData()V
    .registers 9

    .prologue
    const v7, 0x7f0201c5

    const/4 v6, 0x1

    .line 126
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v4

    const-class v5, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v4, v5}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iput-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 128
    new-instance v4, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v4, v7}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4, v7}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    .line 129
    invoke-virtual {v4, v7}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    sget-object v5, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 130
    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    new-instance v5, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v5}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v4

    iput-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 131
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v4

    iput-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 133
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getCachedCommunityRankingApps()Ljava/lang/String;

    move-result-object v2

    .line 134
    .local v2, "jsonStr":Ljava/lang/String;
    if-eqz v2, :cond_68

    .line 136
    :try_start_5a
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 137
    .local v1, "jsonObject":Lorg/json/JSONObject;
    invoke-static {v1}, Lcom/brixd/niceapp/community/model/RankingAppModel;->parseRankingAppModelsWithJsonObj(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v3

    .line 138
    .local v3, "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/RankingAppModel;>;"
    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_68
    .catch Lorg/json/JSONException; {:try_start_5a .. :try_end_68} :catch_69

    .line 143
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    .end local v3    # "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/RankingAppModel;>;"
    :cond_68
    :goto_68
    return-void

    .line 139
    :catch_69
    move-exception v0

    .line 140
    .local v0, "e":Lorg/json/JSONException;
    const-string v4, "error"

    const-string v5, "parse json error"

    invoke-static {v4, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_68
.end method

.method protected initViews(Landroid/view/LayoutInflater;)Landroid/view/View;
    .registers 9
    .param p1, "inflater"    # Landroid/view/LayoutInflater;

    .prologue
    const/4 v4, 0x0

    .line 147
    const v3, 0x7f03004f

    invoke-virtual {p1, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 149
    .local v2, "view":Landroid/view/View;
    const v3, 0x7f0a004a

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    iput-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mShadowHeaderView:Landroid/view/View;

    .line 150
    const v3, 0x7f0a002b

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iput-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    .line 151
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v3}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->getRefreshableView()Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    iput-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    .line 152
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 153
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 154
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMeizu()Z

    move-result v3

    if-nez v3, :cond_3e

    .line 155
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    const/4 v4, 0x2

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->setOverScrollMode(I)V

    .line 158
    :cond_3e
    new-instance v0, Landroid/view/View;

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    invoke-direct {v0, v3}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 159
    .local v0, "headerView":Landroid/view/View;
    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    const/4 v3, -0x1

    const/4 v4, 0x1

    const/high16 v5, 0x40a00000

    .line 160
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->getScreenDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v6

    invoke-static {v4, v5, v6}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v4

    float-to-int v4, v4

    invoke-direct {v1, v3, v4}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    .line 161
    .local v1, "layoutParams":Landroid/widget/AbsListView$LayoutParams;
    invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 162
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f08007f

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/view/View;->setBackgroundColor(I)V

    .line 163
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    invoke-virtual {v3, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 165
    new-instance v3, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V

    iput-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mAdapter:Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

    .line 166
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mAdapter:Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

    invoke-virtual {v3, v4}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 168
    return-object v2
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .registers 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 188
    invoke-super {p0, p1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 190
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->refreshList()V

    .line 191
    return-void
.end method

.method public refreshList()V
    .registers 2

    .prologue
    .line 212
    const/4 v0, 0x0

    iput v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I

    .line 213
    invoke-direct {p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->fetchData()V

    .line 214
    return-void
.end method

.method public scrollToHome()V
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 200
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    if-eqz v0, :cond_f

    .line 201
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V

    .line 202
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mListView:Landroid/widget/ListView;

    invoke-virtual {v0, v1, v1}, Landroid/widget/ListView;->smoothScrollBy(II)V

    .line 204
    :cond_f
    return-void
.end method

.method public setHeaderView(Landroid/view/View;)V
    .registers 2
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 208
    return-void
.end method
